package com.flow.dao;

import java.util.List;
import com.flow.model.BankMessage;
import com.flow.model.PagerModel;
/**
 * 
 * 银行信息Dao接口 
 * @author wang
 * @2016-2-16
 * IBankMessageDao.java
 * @param <T>
 */
public interface IBankMessageDao<T> {

	public boolean insertBankMessage(BankMessage bankMessage);

	public boolean updateBankMessage(BankMessage bankMessage);
	
	public boolean deleteBankMessage(BankMessage bankMessage);
	
	public BankMessage findBankMessageByHql(String hql);

	public BankMessage findBankMessageByHql(String hql, Object param);

	public BankMessage findBankMessageByHql(String hql, List<Object> params);

	public int universalMethodBankMessage(String hql);
	
	public int universalMethodBankMessage(String hql, Object param);
	
	public int universalMethodBankMessage(String hql, List<Object> params);
	
	public List<T> findBankMessageAllByHql(String hql);

	public List<T> findBankMessageAllByHql(String hql, Object param);

	public List<T> findBankMessageAllByHql(String hql, List<Object> params);

	public PagerModel findBankMessagePagerModeled(PagerModel pager, String hql);
	
	public PagerModel findBankMessagePagerModeled(PagerModel pager, String hql, Object param);
	
	public PagerModel findBankMessagePagerModeled(PagerModel pager, String hql, List<Object> params);
}
